package etf.library;

import java.util.HashSet;
import java.util.Set;

public class Library {
	
	private String libraryName;
	private String phoneNumber;
	private String email;
	private Address address;
	private Set<Book> books = new HashSet<Book>();
	private Set<Member> members = new HashSet<Member>();
	private Set<Employee> employees = new HashSet<Employee>();
	
	public Library(){
		
	}
	
	public Library(String libraryName,String phoneNumber,String email,Address address){
		this.libraryName = libraryName;
		this.phoneNumber = phoneNumber;
		this.email = email;
		this.address = address;
	}
	
	public void registerAMember(Member m){
		members.add(m);
	}
	
	public boolean addABook(Book book){
		return(books.add(book));
	}
	
	public boolean hireAnEmployee(Employee emp){
		return(employees.add(emp));
	}
	
	public Set<Book> getBooks() {
		return books;
	}

	public String getLibraryName() {
		return libraryName;
	}

	public void setLibraryName(String libraryName) {
		this.libraryName = libraryName;
	}

	public String getPhoneNumber() {
		return phoneNumber;
	}

	public void setPhoneNumber(String phoneNumber) {
		this.phoneNumber = phoneNumber;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public Address getAddress() {
		return address;
	}

	public void setAddress(Address address) {
		this.address = address;
	}

	public void setEmployees(Set<Employee> employees) {
		this.employees = employees;
	}

	public Set<Employee> getEmployees() {
		return employees;
	}
	
	public Set<Member> getMembers() {
		return members;
	}

	public void setMembers(Set<Member> members) {
		this.members = members;
	}

	public void setBooks(Set<Book> books) {
		this.books = books;
	}
}
